package com.androidx.p013lv.mine.databinding;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.appcompat.widget.Toolbar;
import androidx.core.widget.NestedScrollView;
import androidx.databinding.DataBindingComponent;
import androidx.databinding.ViewDataBinding;
import androidx.databinding.adapters.TextViewBindingAdapter;
import com.androidx.p013lv.mine.C1206BR;
import com.androidx.p013lv.mine.C1207R;
import com.androidx.p013lv.mine.activity.WithdrawActivity;
import com.androidx.p013lv.mine.generated.callback.OnClickListener;
import com.google.android.material.tabs.TabLayout;

/* renamed from: com.androidx.lv.mine.databinding.ActivityWithdrawLayoutBindingImpl */
public class ActivityWithdrawLayoutBindingImpl extends ActivityWithdrawLayoutBinding implements OnClickListener.Listener {
    private static final ViewDataBinding.IncludedLayouts sIncludes = null;
    private static final SparseIntArray sViewsWithIds;
    private final View.OnClickListener mCallback65;
    private final View.OnClickListener mCallback66;
    private final View.OnClickListener mCallback67;
    private long mDirtyFlags;
    private final LinearLayout mboundView0;
    private final TextView mboundView1;
    private final TextView mboundView2;
    private final TextView mboundView3;
    private final LinearLayout mboundView4;
    private final LinearLayout mboundView5;
    private final TextView mboundView6;

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public boolean onFieldChange(int i, Object obj, int i2) {
        return false;
    }

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        sViewsWithIds = sparseIntArray;
        sparseIntArray.put(C1207R.C1210id.toolbar, 7);
        sViewsWithIds.put(C1207R.C1210id.scroll_view, 8);
        sViewsWithIds.put(C1207R.C1210id.tv_fee, 9);
        sViewsWithIds.put(C1207R.C1210id.ed_money, 10);
        sViewsWithIds.put(C1207R.C1210id.tv_withdraw, 11);
        sViewsWithIds.put(C1207R.C1210id.tv_max_money, 12);
        sViewsWithIds.put(C1207R.C1210id.ll_withdraw_money, 13);
        sViewsWithIds.put(C1207R.C1210id.tv_withdraw_max_money, 14);
        sViewsWithIds.put(C1207R.C1210id.tab_layout, 15);
        sViewsWithIds.put(C1207R.C1210id.ed_name, 16);
        sViewsWithIds.put(C1207R.C1210id.ed_account_no, 17);
        sViewsWithIds.put(C1207R.C1210id.ed_bank_name, 18);
        sViewsWithIds.put(C1207R.C1210id.ed_bank_num, 19);
        sViewsWithIds.put(C1207R.C1210id.ed_bank_account_name, 20);
    }

    public ActivityWithdrawLayoutBindingImpl(DataBindingComponent dataBindingComponent, View view) {
        this(dataBindingComponent, view, mapBindings(dataBindingComponent, view, 21, sIncludes, sViewsWithIds));
    }

    private ActivityWithdrawLayoutBindingImpl(DataBindingComponent dataBindingComponent, View view, Object[] objArr) {
        super(dataBindingComponent, view, 0, (EditText) objArr[17], (EditText) objArr[20], (EditText) objArr[18], (EditText) objArr[19], (EditText) objArr[10], (EditText) objArr[16], (LinearLayout) objArr[13], (NestedScrollView) objArr[8], (TabLayout) objArr[15], (Toolbar) objArr[7], (TextView) objArr[9], (TextView) objArr[12], (TextView) objArr[11], (TextView) objArr[14]);
        this.mDirtyFlags = -1;
        LinearLayout linearLayout = (LinearLayout) objArr[0];
        this.mboundView0 = linearLayout;
        linearLayout.setTag(null);
        TextView textView = (TextView) objArr[1];
        this.mboundView1 = textView;
        textView.setTag(null);
        TextView textView2 = (TextView) objArr[2];
        this.mboundView2 = textView2;
        textView2.setTag(null);
        TextView textView3 = (TextView) objArr[3];
        this.mboundView3 = textView3;
        textView3.setTag(null);
        LinearLayout linearLayout2 = (LinearLayout) objArr[4];
        this.mboundView4 = linearLayout2;
        linearLayout2.setTag(null);
        LinearLayout linearLayout3 = (LinearLayout) objArr[5];
        this.mboundView5 = linearLayout3;
        linearLayout3.setTag(null);
        TextView textView4 = (TextView) objArr[6];
        this.mboundView6 = textView4;
        textView4.setTag(null);
        setRootTag(view);
        this.mCallback67 = new OnClickListener(this, 3);
        this.mCallback65 = new OnClickListener(this, 1);
        this.mCallback66 = new OnClickListener(this, 2);
        invalidateAll();
    }

    @Override // androidx.databinding.ViewDataBinding
    public void invalidateAll() {
        synchronized (this) {
            this.mDirtyFlags = 8;
        }
        requestRebind();
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean hasPendingBindings() {
        synchronized (this) {
            if (this.mDirtyFlags != 0) {
                return true;
            }
            return false;
        }
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean setVariable(int i, Object obj) {
        if (C1206BR.position == i) {
            setPosition((Integer) obj);
        } else if (C1206BR.type == i) {
            setType((Integer) obj);
        } else if (C1206BR.click != i) {
            return false;
        } else {
            setClick((WithdrawActivity.Click) obj);
        }
        return true;
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityWithdrawLayoutBinding
    public void setPosition(Integer num) {
        this.mPosition = num;
        synchronized (this) {
            this.mDirtyFlags |= 1;
        }
        notifyPropertyChanged(C1206BR.position);
        super.requestRebind();
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityWithdrawLayoutBinding
    public void setType(Integer num) {
        this.mType = num;
        synchronized (this) {
            this.mDirtyFlags |= 2;
        }
        notifyPropertyChanged(C1206BR.type);
        super.requestRebind();
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityWithdrawLayoutBinding
    public void setClick(WithdrawActivity.Click click) {
        this.mClick = click;
        synchronized (this) {
            this.mDirtyFlags |= 4;
        }
        notifyPropertyChanged(C1206BR.click);
        super.requestRebind();
    }

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public void executeBindings() {
        long j;
        int i;
        int i2;
        synchronized (this) {
            j = this.mDirtyFlags;
            this.mDirtyFlags = 0;
        }
        Integer num = this.mPosition;
        String str = null;
        Integer num2 = this.mType;
        WithdrawActivity.Click click = this.mClick;
        long j2 = j & 9;
        boolean z = true;
        if (j2 != 0) {
            int safeUnbox = ViewDataBinding.safeUnbox(num);
            boolean z2 = safeUnbox == 0;
            boolean z3 = safeUnbox == 1;
            if (j2 != 0) {
                j |= z2 ? 512 : 256;
            }
            if ((j & 9) != 0) {
                j |= z3 ? 128 : 64;
            }
            i2 = 8;
            i = z2 ? 0 : 8;
            if (z3) {
                i2 = 0;
            }
        } else {
            i2 = 0;
            i = 0;
        }
        long j3 = j & 10;
        if (j3 != 0) {
            if (ViewDataBinding.safeUnbox(num2) != 0) {
                z = false;
            }
            if (j3 != 0) {
                j |= z ? 32 : 16;
            }
            str = z ? "余額提現" : "金幣提現";
        }
        if ((8 & j) != 0) {
            this.mboundView1.setOnClickListener(this.mCallback65);
            this.mboundView3.setOnClickListener(this.mCallback66);
            this.mboundView6.setOnClickListener(this.mCallback67);
        }
        if ((j & 10) != 0) {
            TextViewBindingAdapter.setText(this.mboundView2, str);
        }
        if ((j & 9) != 0) {
            this.mboundView4.setVisibility(i);
            this.mboundView5.setVisibility(i2);
        }
    }

    @Override // com.androidx.p013lv.mine.generated.callback.OnClickListener.Listener
    public final void _internalCallbackOnClick(int i, View view) {
        boolean z = false;
        if (i == 1) {
            WithdrawActivity.Click click = this.mClick;
            if (click != null) {
                z = true;
            }
            if (z) {
                click.btnBack();
            }
        } else if (i == 2) {
            WithdrawActivity.Click click2 = this.mClick;
            if (click2 != null) {
                z = true;
            }
            if (z) {
                click2.allWithdraw();
            }
        } else if (i == 3) {
            WithdrawActivity.Click click3 = this.mClick;
            if (click3 != null) {
                z = true;
            }
            if (z) {
                click3.commitWithdraw();
            }
        }
    }
}
